package cn.kgc.blogcommon.pojo;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class News {
    /**新闻ID*/
    private Integer newsId;
    /**新闻标题*/
    private String newsName;
    /**新闻摘要*/
    private String summary;
    /**新闻内容*/
    private String content;
    /**用户ID*/
    private Integer userId;
    /**注册时间*/
    private Date createDate;
    /**评论数*/
    private Integer commentNum;
    /**阅读数*/
    private Integer readNum;
    /**所属分类ID*/
    private Integer categoryId;
    /**图片*/
    private String img;
    /**所属分类*/
    private Category category;
    /**所属标签*/
    private List<Tag> tagList;
    /**创建距今时间*/
    private String timeAgo;

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public String getNewsName() {
        return newsName;
    }

    public void setNewsName(String newsName) {
        this.newsName = newsName;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public List<Tag> getTagList() {
        return tagList;
    }

    public void setTagList(List<Tag> tagList) {
        this.tagList = tagList;
    }

    public String getTimeAgo() {
        return timeAgo;
    }

    public void setTimeAgo(String timeAgo) {
        this.timeAgo = timeAgo;
    }
}